package com.aspose.cells;

public class ChartArea extends ChartFrame {
   private int l = -1;

   ChartArea(Chart chart) {
      super(chart);
      this.b(0);
   }

   public int getX() {
      return this.m();
   }

   public void setX(int value) {
      if (value >= 0 && value <= 4000) {
         this.e(value);
      }

   }

   public int getY() {
      return this.n();
   }

   public void setY(int value) {
      if (value >= 0 && value <= 4000) {
         this.f(value);
      }

   }

   public int getHeight() {
      return this.o();
   }

   public void setHeight(int value) {
      if (value >= 0 && value <= 4000) {
         this.g(value);
      }

   }

   public int getWidth() {
      return this.p();
   }

   public void setWidth(int value) {
      if (value >= 0 && value <= 4000) {
         this.h(value);
      }

   }

   public Font getFont() {
      if (this.f == null) {
         this.f = new Font(this.getChart().j(), (Object)null, true);
         this.f.a(10.0D);
         if (this.g != -1) {
            Font var1 = this.getChart().j().j(this.g);
            this.f.c(var1);
            this.f.b.b(true);
            zbi var2 = this.getChart().c(this.g);
            if (var2 != null) {
               zbi var3 = new zbi(var2.f, 0, false);
               var3.a(var2);
               this.f.a((Object)var3);
            } else if (this.h) {
               this.f.a((Object)(new zbi(this.getChart(), 10, true)));
            }
         } else if (this.h) {
            this.f.a((Object)(new zbi(this.getChart(), 10, true)));
         }
      }

      return this.f;
   }

   int a() {
      return this.l;
   }

   void a(int var1) {
      this.l = var1;
   }

   void a(ChartArea var1, CopyOptions var2) {
      super.a(var1, var2);
   }
}
